﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace gaClear
{
	public class Globals
	{
		protected static string _username = "";
		protected static string _userpass = "";

		public static string UserName
		{
			get 
			{
				getCredentials();
				return _username; 
			}
			set { _username = value; }
		}

		private static void getCredentials()
		{
			if (_username != "")
				return;

			DbUser usr = new DbUser();
			usr.UserId = 1;
			usr.Select();

			_username = usr.NymxLogin;
			_userpass = usr.NymxPass;
		}
	}
}
